/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package model.pojo;

import java.util.Date;

/**
 *
 * @author OJH
 */
public class DonHang {
    private int maDonHang;
    private int maSanPham;
    private int maNguoiDung;
    private int maHinhThucThanhToan;
    private int maTinhTrang;
    private String maXacNhanDonHang;
    private String diaChiGiaoHang;
    private Date ngayGioDatHang;
    private Date ngayGioHuy;
    private String hoTenKH;
    private String diaChiKH;
    private String emailKH;
    private String dienThoaiKH;
    private int soLuong;
    private int tongTien;
    
    public DonHang(){
        this.maDonHang=0;
        this.maSanPham=0;
        this.maNguoiDung=0;
        this.maHinhThucThanhToan=0;
        this.maTinhTrang=0;
        this.maXacNhanDonHang="";
        this.diaChiGiaoHang="";
        this.ngayGioDatHang=null;
        this.ngayGioHuy=null;
        this.hoTenKH="";
        this.diaChiKH="";
        this.emailKH="";
        this.dienThoaiKH="";
        this.soLuong=0;
        this.tongTien=0;
    }
    
     public DonHang(int maDonHang, int maSanPham, int maNguoiDung, int maHinhThucThanhToan, int maTinhTrang,  String maXacNhanDonHang, String diaChiGiaoHang,
             Date ngayGioDatHang, Date ngayGioHuy, String hoTenKH,String diaChiKH, String emailKH, String dienThoaiKH, int soLuong,  int tongTien ){
        this.maDonHang=maDonHang;
        this.maSanPham= maSanPham;
        this.maNguoiDung=maNguoiDung;
        this.maHinhThucThanhToan=maHinhThucThanhToan;
        this.maTinhTrang=maTinhTrang;
        this.maXacNhanDonHang=maXacNhanDonHang;
        this.diaChiGiaoHang=diaChiGiaoHang;
        this.ngayGioDatHang=ngayGioDatHang;
        this.ngayGioHuy=ngayGioHuy;
        this.hoTenKH=hoTenKH;
        this.diaChiKH=diaChiKH;
        this.emailKH= emailKH;
        this.dienThoaiKH=dienThoaiKH;
        this.soLuong=soLuong;
        this.tongTien=tongTien;
    }
  
    public DonHang(DonHang dh){
        this.maDonHang = dh.maDonHang;
        this.maSanPham= dh.maSanPham;
        this.maNguoiDung=dh.maNguoiDung;
        this.maHinhThucThanhToan=dh.maHinhThucThanhToan;
        this.maTinhTrang=dh.maTinhTrang;
        this.maXacNhanDonHang=dh.maXacNhanDonHang;
        this.diaChiGiaoHang=dh.diaChiGiaoHang;
        this.ngayGioDatHang=dh.ngayGioDatHang;
        this.ngayGioHuy=dh.ngayGioHuy;
        this.hoTenKH=dh.hoTenKH;
        this.diaChiKH=dh.diaChiKH;
        this.emailKH= dh.emailKH;
        this.dienThoaiKH=dh.dienThoaiKH;
        this.soLuong=dh.soLuong;
        this.tongTien=dh.tongTien;
    }
    
     /**
     * @return the maDonHang
     */
    public int getMaDonHang() {
        return maDonHang;
    }

    /**
     * @param maDonHang the maDonHang to set
     */
    public void setMaDonHang(int maDonHang) {
        this.maDonHang = maDonHang;
    }

    /**
     * @return the maSanPham
     */
    public int getMaSanPham() {
        return maSanPham;
    }

    /**
     * @param maSanPham the maSanPham to set
     */
    public void setMaSanPham(int maSanPham) {
        this.maSanPham = maSanPham;
    }

    /**
     * @return the maNguoiDung
     */
    public int getMaNguoiDung() {
        return maNguoiDung;
    }

    /**
     * @return the maHinhThucThanhToan
     */
    public int getMaHinhThucThanhToan() {
        return maHinhThucThanhToan;
    }

    /**
     * @return the maTinhTrang
     */
    public int getMaTinhTrang() {
        return maTinhTrang;
    }

    /**
     * @return the maXacNhanDonHang
     */
    public String getMaXacNhanDonHang() {
        return maXacNhanDonHang;
    }

    /**
     * @return the diaChiGiaoHang
     */
    public String getDiaChiGiaoHang() {
        return diaChiGiaoHang;
    }

    /**
     * @return the ngayGioDatHang
     */
    public Date getNgayGioDatHang() {
        return ngayGioDatHang;
    }

    /**
     * @return the ngayGioHuy
     */
    public Date getNgayGioHuy() {
        return ngayGioHuy;
    }

    /**
     * @return the hoTenKH
     */
    public String getHoTenKH() {
        return hoTenKH;
    }

    /**
     * @return the diaChiKH
     */
    public String getDiaChiKH() {
        return diaChiKH;
    }

    /**
     * @return the emailKH
     */
    public String getEmailKH() {
        return emailKH;
    }

    /**
     * @return the dienThoaiKH
     */
    public String getDienThoaiKH() {
        return dienThoaiKH;
    }

    /**
     * @return the soLuong
     */
    public int getSoLuong() {
        return soLuong;
    }

    /**
     * @return the tongTien
     */
    public int getTongTien() {
        return tongTien;
    }

   
}
